home *** CD-ROM | disk | FTP | other *** search
- Path: newsgate.sps.mot.com!usenet
- From: Kevin Brune <RP5362@email.mot.com>
- Newsgroups: comp.lang.c++
- Subject: Help: ANSI C & GNU's 'protoize'
- Date: Tue, 16 Apr 1996 09:29:41 -0700
- Organization: Motorola
- Message-ID: <3173CAF5.7DD0@email.mot.com>
- NNTP-Posting-Host: samadams.sps.mot.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.5 sun4u)
-
- Greetings,
-
- I was wondering if there is a known limitation to the number of files
- that gnu's 'protoize' tool can deal with. I have been able to use
- protoize successfully on project that are less than about 150 files
- (both *.c and *.h). However, I am trying to run protoize on a project
- that has about 400 *.c and *.h files total and I am getting core dumps
- (IOT Trap error).
-
- I am compiling and running protoize on a Sun UltraSPAC 1 under Solaris
- 2.5....
-
- Here is the approach I am taking:
-
- Step 1: First compile all 400 files using 'gcc -tradition -....' on the
- original K&R Style code.
- Step 2: Once I get a clean compile of K&R code, use 'protoize' with the
- same gcc options.
- Step 3: Once all the *.c protoize files are created with *.save backups
- of the original code, re-compile on gcc using the -ansi -pedantic -Wall
- -Wstrict-prototypes -Wmissing-prototypes
- -Wmissing-declarations -g -O switches to catch all ANSI C violations.
- Step 4: Clean up protoize errors and problems compiling with options in
- Step 3 above.
-
- I made it through step 1 and part of step 2 using the protoize command
- below and then I got the following error:
-
- protoize -g -c '-traditional' *.c
-
- ....snip (skipping lots of conversions except for the last few below)
-
- protoize: converting file `premail.c'
- premail.c: 206: warning: `main' excluded by preprocessing
- protoize: function definition not converted
- protoize: converting file `firm_handler.c'
- protoize: converting file `comp_handler.c'
- comp_handler.c: 123: warning: `TDOUT' excluded by preprocessing
- protoize: function definition not converted
- protoize: converting file `tree_handler.c'
- protoize: converting file `gentree.h'
- protoize: converting file `gettime.c'
- protoize:
- `/all/gcc/272r_lib271/Sun413/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/2.7.
- 2/include/sys/fcntlcom.h' not converted
- protoize: converting file `defgroupread.c'
- protoize: converting file `groupaddndel.c'
- protoize: converting file `display.h'
- protoize: converting file `readfirmmacrofile.c'
- protoize: converting file `writerc.c'
- protoize: converting file `fullnetdebug.c'
- IOT trap (core dumped)
- ;
-
- 1) Has anyone encountered this IOT trap error before?
-
- 2) Is there a limitation on the number of files that 'protoize' can
- handle?
-
- 3) Is there a FAQ for 'protoize'?
-
- Please e-mail me and post your comments and suggestions!
- TIA,
- Kevin Brune
- RP5362@email.mot.com
-